package com.hl.service;

import com.hl.mapper.PsychologicalAssessmentMapper;
import com.hl.pojo.PsychologicalAssessment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PsychologicalAssessmentServiceImpl implements PsychologicalAssessmentService {
    @Autowired
    private PsychologicalAssessmentMapper mapper;
    @Override
    public Integer add(PsychologicalAssessment psychologicalAssessment) {
        return mapper.add(psychologicalAssessment);
    }

    @Override
    public List<PsychologicalAssessment> findAll() {
        return mapper.findAll();
    }

    @Override
    public Integer del(Integer id) {
        return mapper.del(id);
    }

    @Override
    public PsychologicalAssessment findById(Integer id) {
        return mapper.findById(id);
    }

    @Override
    public Integer update(PsychologicalAssessment psychologicalAssessment) {
        return mapper.update(psychologicalAssessment);
    }
}
